using Single.Core.Service;
using Single.Sugar.Service;
using Single.Sys.Entity;
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Collections.Generic;
using System.Text;

namespace Single.Sys.Service
{
    public class SysRoleDefineOrgService : BaseService<SysRoleDefineOrg>
    {
        public List<SysRoleDefineOrg> GetByRoleId(long id)
        {
            return rep.AsQueryable().Where(m => m.RoleId.Equals(id)).ToList();
        }

        public List<SysRoleDefineOrg> GetByRoleIds(List<long> ids)
        {
            return rep.AsQueryable().Where(m => ids.Contains(m.RoleId)).ToList();
        }
    }
}